Skip to content

feat: preview saved history from exited sessions - #91

Draft
johnnyhuy wants to merge 1 commit into
mainfrom
agent/issue-90-exited-session-recovery
Draft

johnnyhuy wants to merge 1 commit into
mainfrom
agent/issue-90-exited-session-recovery

Conversation

@johnnyhuy

Copy link
Copy Markdown
Contributor

Exited sessions now offer an exact saved-history preview before explicit resume or fork, while retaining their transcript and unsent draft. Recovery refreshes archive metadata, refuses unrelated history and ignores lookups that finish after navigation.

Part of #4. Closes #90.

Verified locally with the repository's pinned Node 22 toolchain.

  • bun install --frozen-lockfile passed.
  • bun run lint passed.
  • bun run typecheck passed.
  • bun run test:unit passed, 114 tests.
  • mise exec -- bun run test:integration passed, 130 tests. The first invocation outside mise used Node 26 and failed six existing Settings tests because its localStorage global was unavailable; the pinned toolchain passes.
  • mise run build passed, including lint, typecheck, unit/component tests and bundling.
  • git diff --check passed.

The nine new component cases verify exact-archive preview, separate draft retention, missing or wrong-root archives, lookup and read failures, delayed results after root/view/tab navigation, and a missing runtime archive path.

Test Files  10 passed (10)
     Tests  114 passed (114)
Test Files  14 passed (14)
     Tests  130 passed (130)

Local bun run test:e2e was blocked before app launch by a missing Electron Framework.framework/Electron Framework library. All 77 Electron tests were skipped. Hosted macOS Electron checks and screenshot capture are pending; this PR stays draft until that proof is attached.

Three new Electron cases cover native desktop and minimum-window recovery, keyboard preview without a runtime launch or archive mutation, missing-archive feedback, and resuming the exact archive only after explicit continuation. Captures are written to .tmp/proof/ and uploaded from test-results/session-activity/ by the existing CI workflow.

Recovery depends on the runtime providing an archive path and Pi successfully saving that archive. There is no automatic restart or archive repair; the existing saved-history validation and continuation limits still apply. A separate saved-history draft remains separate from the unsent draft in the exited tab.

Co-authored-by: OpenAI Codex <noreply@openai.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Preview the exact saved archive from an exited session

1 participant